package com.niit.mall.user.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.user.domain.vo
 * @Author: ChuXuan
 * @CreateTime: 2025-06-16  02:35
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class RoleVO {

    /**
     * 类型ID
     */
    private Long id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 总数
     */
    private Integer userCount;

    /**
     * 权限分配
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String, List<String>> assignment;

    /**
     * 启用状态
     */
    private Boolean status;

    /**
     * 创建时间
     */
    private LocalDate createDate;

}
